﻿using GDGeek;
using UnityEngine;

namespace MrPP.SerriedCabinet
{
    [ExecuteInEditMode]
    public class ScaleLocked : MonoBehaviour
    {
        [SerializeField]
        private Vector3 _scale = Vector3.one;

        // Update is called once per frame
        void Update()
        {
            if (this.transform.hasChanged)
            {
                this.transform.setGlobalScale(_scale);
            }
        }
    }
}